package com.py.credit.service;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.credit.entity.Cards;
import com.py.credit.entity.Enterprise;
import com.py.framework.core.common.Page;

public interface CardsService {

	public void add(@Param(value = "card") Cards card);

	public void edit(@Param(value = "card") Cards card);

	public List<LinkedHashMap<String, Object>> selectCardsInfoForPage(String zjName, String type, String userId,
			String sign, List<String> showColumns, String[] additionalColumns, String condition, Page page);

	public Cards selectCardsDetail(String id, String sign, String type, String userId, String shzt);

	public Long selectCardsSfyzz(String id, String sign, String type, String userId, String shzt);

	public Long selectCardsZzsfdq(String id, String sign, String type, String userId, String shzt);

	public void delete(List<String> cardIds);

	public Integer selectCount(String cardId);

	public void updateCardShzj(String id, String shzt);

	public void updateCardShzjByUserId(String userId, String shzt);

	public void updateCardSinStatus(String id);

	public void addReportEnterprise(Enterprise enter);

	public List<LinkedHashMap<String, Object>> selectEnterpriseForPage(String mainName, String mainType, String zzzt,
			List<String> showColumns, String[] additionalColumns, String condition, Page page);

	public void addHistory(String shr, String bz, long id, String shyj, String shjg);

	public List<LinkedHashMap<String, Object>> selectHistory(String id);

	public void updateCardStatus(String userId);

	public List<String> selectCardIdByUserId(String userId, String type);

	public List<LinkedHashMap<String, Object>> selectCardsForPage(String type, String userId, String shzt, Page page);

	public Map<String, Object> selectUserinfo(String id);
}
